<?php
if(!isset($param[0]))throw new Exception('Not enough parameter');

echo $param[0]."\n";
$rs=$db->query($param[0]);
if($rs){
	if($rs->num_rows){
		$db->print_cli($rs);
	}else{
		echo "0 rows returned.";
	}

}
